package controllers

import (
	"boomlive.com/boomlive-common/constants"
)

type ErrorController struct {
	BaseController
}

func (c *ErrorController) Error401() {
	c.Result(constants.ERR_SERVER_STATUS_401, nil)
}

func (c *ErrorController) Error403() {
	c.Result(constants.ERR_SERVER_STATUS_403, nil)
}

func (c *ErrorController) Error404() {
	c.Result(constants.ERR_SERVER_STATUS_404, nil)
}

func (c *ErrorController) Error500() {
	c.Result(constants.ERR_SERVER_STATUS_500, nil)
}

func (c *ErrorController) Error503() {
	c.Result(constants.ERR_SERVER_STATUS_503, nil)
}
